package dao

import (
	"BiYeProServer/src/model"
	"github.com/gin-gonic/gin"
)

func SelectUserByUname(ctx *gin.Context,username string) *model.User {
	user := &model.User{}
	GetDb().Where("username=?", username).First(&user)
	return user
}
